package com.zhl.service_;

import com.zhl.entity.User;

import java.util.List;

/**
 * Created by Administrator on 2018/11/5.
 */
public interface UserService {

    /**登录*/
    User login(String username, String password);
    /**根据id查询user*/
    User queryUserByid(int id);
    User queryUserByUsername(String username);
    /**查询所有user*/
    List<User> userList();
    /**赋予权限*/
    int addUserRole(int id,String rids);
    /**注册*/
    int register(User user);


}
